//
//  SecurityCenterViewModel.h
//  AIWAYS
//
//  Created by Navinfo on 2018/7/31.
//  Copyright © 2018年 wlq. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserDefaultsKeyDefine.h"
#import "NIBaseViewModel.h"

@interface SecurityCenterViewModel : NIBaseViewModel

@property(nonatomic,strong)NSNumber *checkSecurityResultCode;
@property(nonatomic,assign)NSInteger checkSecurityErrorCode;
@property(nonatomic,strong)NSString *checkSecurityErrorMessage;

- (void)saveGestureLock:(NSString *)securityCodeSting;
- (void)removeGestureLock;
- (NSString *)getGestureLockString;
- (BOOL)isGestureLockSetup;
- (BOOL)isSecurityPasswordSetUp;

- (BOOL)isBiometricsLockSetup;
- (void)removeBiometricsLock;
- (void)addBiometricsLock;

- (void)setValidateSecurityWay:(ValidateSecurityWay)way;
- (ValidateSecurityWay)getValidateSecurityWay;

- (BOOL)needValidateSecurityCode;
- (void)setupLastControlTimeStamp;
- (void)removeLastControlTimeStamp;

- (void)checkSecurityCode:(NSString *)securityCode;

-(void)logout;
@end
